#ifndef OBUFFER_H
#define OBUFFER_H

class OBuffer: public Buffer {

private:

	bool buffer0isFull;
	bool buffer1isFull;
	bool buffer2isFull;

	void flush();

public:

	OBuffer();
	~OBuffer();

	//Initialization
	bool init(const char* outfile);

	// puts the given string into output buffer
	// writes output buffer into specified output file
	void writeString(const char* printString);

	//functionality of thread
	bool run();

};

#endif
